package com.e3.web.widget.client;

import com.extjs.gxt.ui.client.widget.form.TextField;

public class MyTextField<D> extends TextField<D> implements MyField<D> {
	
	private boolean isHide = false;

	public MyTextField() {
		this(false);
	}

	public MyTextField(boolean isPassword) {
		super();
		setPassword(isPassword);
	}

	public D getFieldValue() {
		return getValue();
	}

	@SuppressWarnings("unchecked")
	public void setFieldValue(Object value) {
		setValue((D) value);
	}
	@Override
	public void hide() {
		isHide = true;
		super.hide();
	}

	public boolean isHide() {
		return isHide;
	}
}
